<template>
	<div class="singlepage">
		<SinglePageTop></SinglePageTop>
	  <div class="home">
      <p style="margin-top: 10px;width:95%;margin:0 auto" v-html='content'></p>
	  </div>
    
  </div>
</template>
<script>
import SinglePageTop from './components/SinglePageTop.vue'
import { loadServicePage } from '@/api/allapis.js'
export default{
  name: 'SinglePage',
  data(){
    return{
      type:'',
      content:''
    }
  },
  mounted(){
      this.type = this.$route.params.type
      // console.log(this.$route.params.type)
      this.loaddata()
     
  },
  methods:{
    loaddata(){
        loadServicePage(this.type).then(rosponse=>{
            this.content = rosponse.data.info.content
        })
    },
  },
  components:{
    SinglePageTop,
  }
}
</script>
<style>
.singlepage{padding-top:50px;}
</style>



